<%@ Control Language="c#" AutoEventWireup="True" Codebehind="AnswerOptionControl.ascx.cs"    Inherits="Votations.NSurvey.WebAdmin.UserControls.AnswerOptionControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="SurveyListControl" Src="SurveyListControl.ascx" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>


<asp:label id=MessageLabel runat="server" ForeColor="Green" Visible="False"></asp:label>
<TABLE class=Innertext>
  <TR>
    <TD colSpan=2><FONT class=Titlefont 
      ><asp:literal id=EditAnswerTitle 
      runat="server" Text="Edit answer settings" 
      EnableViewState="False"></asp:literal></FONT><BR><IMG src="/Admin/Survey/images/Linebreak.Gif" > </TD></TR>
  <TR>
    <TD>&nbsp;&nbsp; </TD>
    <TD>
      <TABLE class=Innertext>
        <tr>
          <td noWrap width=140><STRONG 
            ><asp:literal id=AnswerTextLabel 
             runat="server" Text="Answer text :" 
            EnableViewState="False"></asp:literal></STRONG></td>
          <td width=480><asp:textbox id=AnswerTextTextBox runat="server"></asp:textbox></td></tr>
        <TR>
          <TD width=140><STRONG 
            ><asp:literal id=AnswerURLLabel 
             runat="server" Text="Image URL :" 
            EnableViewState="False"></asp:literal></STRONG></TD>
          <TD><asp:textbox id=AnswerImageURLTextBox runat="server"></asp:textbox></TD></TR>
        <tr>
          <td noWrap width=140><STRONG 
            ><asp:literal id=AnswerTypeLabel 
             runat="server" Text="Type :" 
            EnableViewState="False"></asp:literal></STRONG></td>
          <td width=480><asp:dropdownlist id=AnswerTypeDropDownList runat="server" AutoPostBack="True" onselectedindexchanged="AnswerTypeDropDownList_SelectedIndexChanged"></asp:dropdownlist></td></tr>
        <TR>
        <TR>
          <TD width=140><STRONG 
            ><asp:literal id=DefaultTextLabel 
             runat="server" Visible="False" 
            Text="Default text value* :" 
            EnableViewState="False"></asp:literal></STRONG></TD>
          <TD><asp:textbox id=DefaultTextTextBox runat="server" Visible="False"></asp:textbox></TD></TR>
        <tr>
          <td noWrap width=140><STRONG 
            ><asp:literal id="AnswerPipeAliasLabel" 
             runat="server" Text="Pipe alias :" 
            EnableViewState="False"></asp:literal></STRONG></td>
          <td width=480><asp:textbox id="AnswerPipeAliasTextBox" runat="server"></asp:textbox></td></tr>
        <TR>
          <TD width=160><STRONG 
            ><asp:literal id=SelectedAnswersLabel 
             runat="server" Visible="False" 
            Text="Selected by default :" 
            EnableViewState="False"></asp:literal></STRONG></TD>
          <TD><asp:checkbox id=SelectionCheckBox runat="server" Visible="False"></asp:checkbox></TD></TR>
        <TR>
          <TD width=160><STRONG 
            ><asp:literal id=AnswerRatingLabel 
             runat="server" Visible="False" 
            Text="Rating part :" 
          EnableViewState="False"></asp:literal></STRONG></TD>
          <TD><asp:checkbox id=RatingPartCheckbox runat="server" Visible="False"></asp:checkbox></TD></TR>
        <TR>
          <TD width=160><STRONG 
            ><asp:literal id=ScoreLabel 
            runat="server" Visible="False" Text="Score :" 
            EnableViewState="False"></asp:literal></STRONG></TD>
          <TD><asp:textbox id=ScoreTextBox runat="server" Visible="False" Columns="3"></asp:textbox></TD></TR></TABLE><asp:button id=UpdateAnswerButton runat="server" Text="Update" onclick="UpdateAnswerButton_Click"></asp:button><asp:button id=AddAnswerButton runat="server" Text="Add answer" onclick="AddAnswerButton_Click"></asp:button><asp:button id=DeleteAnswerButton runat="server" Text="Delete" onclick="DeleteAnswerButton_Click"></asp:button><asp:button id=CancelAnswerButton runat="server" Text="Cancel" onclick="CancelAnswerButton_Click"></asp:button><BR 
      ><br><BR><asp:label id=PipeHelpLabel Runat="server">
*you can pipe special values that will be replaced at runtime into the text value :<br>
##yourquerystringvariablename##</b><br>
@@yoursessionvariablename@@<br>
&&yourcookievariablename&&<br>
%%servervariablename%%
</asp:label></TD></TR></TABLE>
